package com.shigen.demo.base;

/**
 * StringBufferAndBuilder
 *
 * @author shigenfu
 * @date 2022/5/13 10:26 下午
 */
public class StringBufferAndBuilder {

  public static void main(String[] args) {
    String aa = "111";
    StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append("aa");
    stringBuffer.append("bb");
    System.out.println(stringBuffer.toString());

    StringBuilder stringBuilder = new StringBuilder();
    stringBuilder.append("vv");
    stringBuilder.append("cc");
    System.out.println(stringBuilder.toString());


  }

}
